<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script>
    window.onload = () => {
      const versionRegex = /^\d+\.\d+\.\d+$/;

      // 示例
      const version = "10.02.300000a";
      if (versionRegex.test(version)) {
          console.log("版本名格式正确");
      } else {
          console.log("版本名格式不正确");
      }

    }
  </script>
</head>
<body>
  
</body>
</html>